package cn.zhiwen.controller;

import cn.zhiwen.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api-a-url")
public class HelloController {
    @Autowired
    private HelloService helloService;

    @RequestMapping("feign")
    public String hello(){
        return helloService.hello();
    }

}
